package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.BorrowInfo;
import com.atguigu.srb.core.pojo.vo.BorrowInfoApprovalVO;
import com.baomidou.mybatisplus.extension.service.IService;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 借款信息表 服务类
 * </p>
 *
 * @author lupengning
 * @since 2021-05-27
 */
public interface BorrowInfoService extends IService<BorrowInfo> {

  void approval(BorrowInfoApprovalVO borrowInfoApprovalVO);

  BigDecimal getBorrowAmount(Long userId);

  void saveBorrowInfo(BorrowInfo borrowInfo, Long userId);

  Integer getStatusByUserId(Long userId);

  List<BorrowInfo> selectList();

  Map<String, Object> getBorrowInfoDetail(Long id);

}
